<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            /* perspective: 500px; */
        }
        div
        {
            width: 100px;
            height: 100px;
            margin: 100px auto;
            background-color: aqua;
            
            transition: 0.5s;
        }
        div:hover{
            transform: perspective(500px) translateZ(200px);
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>